<div class="header">
	<table style="width:100%">
		<tbody>
			<tr>
				<td>
					<div class="input-prepend">
                  		<span class="add-on"><i class="icon-search"></i></span><input value="{{searchKey}}" type="text" id="inputIcon" class="span2 book-search">
               		</div>
                </td>
				<td>
					{{#sortConfig.attrs}}
						<a id="{{this.attr}}" class="btn sort"><span id="{{this.attr}}">{{this.name}} </span>{{#if this.active}}<i id="{{this.attr}}" class="{{#if ../asc}}icon-chevron-up{{else}}icon-chevron-down{{/if}}"></i>{{/if}}</a>
					{{/sortConfig.attrs}}
				</td>
				<td align="right">
					<div class="pagination">
						<ul>
							<li><a href="{{prevLink}}">Prev</a></li>
							{{#pages}}
								<li {{#if this.active}}class="active"{{/if}}><a href="{{this.link}}">{{this.id}}</a></li>
							{{/pages}}
							<li><a href="{{nextLink}}">Next</a></li>
						</ul>
					</div>
				</td>
			</tr>
		</tbody>
	</table>
</div>
<div id="content" class="books {{viewType}}">
	{{#if tiles}}
		<div class="row">
		{{#models}}
			<div id="{{id}}" style="height:353px" class="span3">book</div>
			{{#if this.br}}
				</div>
				<div class="row">
			{{/if}}
		{{/models}}
	{{else}}
		{{#models}}
			<div style="margin-bottom:20px;" class="row" id={{id}}>
			</div>
		{{/models}}
	{{/if}}
</div>
